cmake_minimum_required(VERSION 3.18.0)

project(Fly)

include_directories(
    ${CMAKE_SOURCE_DIR}/include
)

add_library(fly SHARED
    ${CMAKE_SOURCE_DIR}/src/fly.c
)
target_link_libraries(fly
    pthread
)

link_directories(
    ${CMAKE_SOURCE_DIR}/build
)
add_executable(main
    ${CMAKE_SOURCE_DIR}/src/main.c
)
target_link_libraries(main pthread fly)
